.controlGroup {
	padding: 1rem;
	border-bottom: 1px solid #e2e8f0;

	&:last-child {
		border-bottom: none;
	}
}

.controlGroupTitle {
	display: flex;
	margin: 0 0 0.75rem;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	align-items: center;
	gap: 0.5rem;
}

.controlButtons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;

	:global(.ant-btn) {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: center;
		gap: 8px;

		i {
			margin: 0;
			font-size: 14px;
		}
	}
}

.weatherControls {
	.weatherSectionTitle {
		margin: 1rem 0 0.5rem;
		font-size: 13px;
		font-weight: 500;
		color: #475569;
	}

	.weatherLegend {
		padding-top: 1rem;
		margin-top: 1rem;
		border-top: 1px solid #e2e8f0;

		.legendGroup {
			margin-bottom: 1rem;

			&:last-child {
				margin-bottom: 0;
			}

			.legendGroupTitle {
				margin: 0 0 0.5rem;
				font-size: 12px;
				font-weight: 500;
				color: #64748b;
			}
		}

		.legendItem {
			display: flex;
			align-items: center;
			margin-bottom: 0.25rem;

			&:last-child {
				margin-bottom: 0;
			}

			.legendColor {
				width: 16px;
				height: 16px;
				margin-right: 8px;
				border: 1px solid rgba(0, 0, 0, 10%);
				border-radius: 3px;
			}

			.legendText {
				font-size: 12px;
				color: #64748b;
			}
		}

		.legendGradient {
			margin-top: 0.5rem;
		}

		.gradientBar {
			height: 20px;
			overflow: hidden;
			border-radius: 4px;

			&.temperatureGradient {
				background: linear-gradient(
					to right,
					#313695,
					#4575b4,
					#74add1,
					#abd9e9,
					#e0f3f8,
					#ffffbf,
					#fee090,
					#fdae61,
					#f46d43,
					#d73027,
					#a50026
				);
			}
		}

		.gradientLabels {
			display: flex;
			justify-content: space-between;
			margin-top: 0.25rem;
			font-size: 11px;
			color: #64748b;
		}
	}
}

/* 气压图例颜色 */
.legendPressureHigh {
	background-color: #d32f2f;
}

.legendPressureMediumHigh {
	background-color: #f57c00;
}

.legendPressureNormal {
	background-color: #fdd835;
}

.legendPressureLow {
	background-color: #2196f3;
}

/* 风速图例颜色 */
.legendWindStrong {
	background-color: #d32f2f;
}

.legendWindHigh {
	background-color: #f57c00;
}

.legendWindMedium {
	background-color: #fdd835;
}

.legendWindLight {
	background-color: #4caf50;
}
